package com.ruoyi.franchise.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.franchise.mapper.AdminMenuMapper;
import com.ruoyi.franchise.domain.AdminMenu;
import com.ruoyi.franchise.service.IAdminMenuService;

/**
 * 菜单管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-12
 */
@Service
public class AdminMenuServiceImpl implements IAdminMenuService 
{
    @Autowired
    private AdminMenuMapper adminMenuMapper;

    /**
     * 查询菜单管理
     * 
     * @param menuId 菜单管理主键
     * @return 菜单管理
     */
    @Override
    public AdminMenu selectAdminMenuByMenuId(Long menuId)
    {
        return adminMenuMapper.selectAdminMenuByMenuId(menuId);
    }

    /**
     * 查询菜单管理列表
     * 
     * @param adminMenu 菜单管理
     * @return 菜单管理
     */
    @Override
    public List<AdminMenu> selectAdminMenuList(AdminMenu adminMenu)
    {
        return adminMenuMapper.selectAdminMenuList(adminMenu);
    }

    /**
     * 新增菜单管理
     * 
     * @param adminMenu 菜单管理
     * @return 结果
     */
    @Override
    public int insertAdminMenu(AdminMenu adminMenu)
    {
        return adminMenuMapper.insertAdminMenu(adminMenu);
    }

    /**
     * 修改菜单管理
     * 
     * @param adminMenu 菜单管理
     * @return 结果
     */
    @Override
    public int updateAdminMenu(AdminMenu adminMenu)
    {
        return adminMenuMapper.updateAdminMenu(adminMenu);
    }

    /**
     * 批量删除菜单管理
     * 
     * @param menuIds 需要删除的菜单管理主键
     * @return 结果
     */
    @Override
    public int deleteAdminMenuByMenuIds(Long[] menuIds)
    {
        return adminMenuMapper.deleteAdminMenuByMenuIds(menuIds);
    }

    /**
     * 删除菜单管理信息
     * 
     * @param menuId 菜单管理主键
     * @return 结果
     */
    @Override
    public int deleteAdminMenuByMenuId(Long menuId)
    {
        return adminMenuMapper.deleteAdminMenuByMenuId(menuId);
    }
}
